package com.linkai.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yamon
 * @since 2021-03-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Customer对象", description="")
public class Customer implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "客户姓名")
    private String name;

    @ApiModelProperty(value = "客户编号")
    private String number;

    @ApiModelProperty(value = "外键，关联业务员")
    private Integer empId;

    @ApiModelProperty(value = "外键，关联供应商")
    private Integer supId;

    @ApiModelProperty(value = "是否禁用该客户")
    private Boolean isBan;

    @ApiModelProperty(value = "默认客户")
    private Boolean isDefault;

    @ApiModelProperty(value = "积分")
    private Integer score;

    @ApiModelProperty(value = "欠款")
    private BigDecimal debt;

    @ApiModelProperty(value = "联系人姓名")
    private String connName;

    @ApiModelProperty(value = "联系电话")
    private String connPhone;

    @ApiModelProperty(value = "联系地址")
    private String connAdress;

    @ApiModelProperty(value = "微信号")
    private String wechatNumber;

    @ApiModelProperty(value = "qq")
    private String qq;

    @ApiModelProperty(value = "单位地址")
    private String workAddress;

    @ApiModelProperty(value = "传真")
    private String fax;

    private String email;

    @ApiModelProperty(value = "右边")
    private String post;

    @ApiModelProperty(value = "beizhu")
    private String back;

    @TableLogic
    private Boolean deleted;

      @TableField(fill = FieldFill.INSERT)
    private Date createTime;

      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
